<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0px;;
        }
        .search{
            position: relative;
            margin-left: 10px;
            margin-top: 10px;
            width: 250px;
            height: 40px;
        }
        .search button{
            position: absolute;
            margin-top: -30px;
            right: 5px;
            background-image: url(images/icon4.png);
            width: 24px;
            height: 24px;
            border: none;
        }
        .search input{
            outline: none;
            width: 250px;
            height: 38px;
            border: none;
            background-color: #eee;
            height: 38px;
            padding-left: 20px;
            border-radius: 30px;
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <div class="search">
        <input type="text"  placeholder="搜索">
        <button></button>
    </div>
</body>
</html>